<div id="divMain"><?=form_open(base_url("untitled/hotro/sua.html"))?>
    <?php foreach($result as $item) { echo form_hidden("id", $item->id); ?>
	<table align="center" class="tblInsert">
    	<tr>
        	<td>Tên:<?=form_error('ten')?></td>
            <td style="text-align:left"><input type="text" name="ten" value="<?=$item->ten?>" /></td>
        </tr>
    	<tr>
        	<td>Số điện thoại:<?=form_error('phone')?></td>
            <td style="text-align:left"><input type="text" name="phone" value="<?=$item->phone?>" /></td>
        </tr>
    	<tr>
        	<td>Thứ tự:<?=form_error('thutu')?></td>
            <td style="text-align:left"><input type="text" name="thutu" value="<?=$item->thutu?>" /></td>
        </tr>
        <tr>
        	<td>Ẩn hiện:<?=form_error('anhien')?></td>
            <td align="left"><select name="anhien"><option <?=($item->anhien==1)?"selected='selected'":""?> value="1">Hiện</option><option <?=($item->anhien==0)?"selected='selected'":""?> value="0">Ẩn</option></select></td>
        </tr>
        <tr>
        	<td colspan="2"><?=form_submit("btnSubmit","Sửa")?></td>
        </tr>
    </table>
    <?php } ?>
    <?=form_close();?>
</div>